import request from '@/utils/request'

// 查询学生列表
export function listStudent(query) {
    return request({
        url: '/business/student/list',
        method: 'get',
        params: query
    })
}

// 查询学生详细
export function getStudent(id) {
    return request({
        url: '/business/student/' + id,
        method: 'get'
    })
}

// 新增学生
export function addStudent(data) {
    return request({
        url: '/business/student',
        method: 'post',
        data: data
    })
}

// 修改学生
export function updateStudent(data) {
    return request({
        url: '/business/student',
        method: 'put',
        data: data
    })
}


export function confirmStudent(stuId, mode) {
    return request({
        url: '/business/student/confirmStudent?stuId=' + stuId + "&mode=" + mode,
        method: 'post'
    })
}

export function confirmStudentList(stuId, mode) {
    return request({
        url: '/business/student/confirmStudentList?stuIdList=' + stuId + "&mode=" + mode,
        method: 'post'
    })
}



// 删除学生
export function delStudent(id) {
    return request({
        url: '/business/student/' + id,
        method: 'delete'
    })
}


// 查询学生详细
export function confirmList(schoolId, mode) {
    return request({
        url: '/business/student/confirmList?schoolId=' + schoolId + "&mode=" + mode,
        method: 'get'
    })
}
